package com.pic4493.entities;

import android.util.Log;

import com.pic4493.base.BaseEntity;

public class EPhoto extends BaseEntity
{
   public String getThumbnailUrl()
   {
	  return ThumbnailUrl;
   }

   public void setThumbnailUrl(String thumbnailUrl)
   {
	  ThumbnailUrl = thumbnailUrl;
   }

   public int getThumbnailHeight()
   {
	  return ThumbnailHeight;
   }

   public void setThumbnailHeight(int height)
   {
	  ThumbnailHeight = height;
   }

   public int getThumbnailWidth()
   {
	  return ThumbnailWidth;
   }

   public void setThumbnailWidth(int width)
   {
	  ThumbnailWidth = width;
   }

   public String getDate()
   {
	  return Date;
   }

   public void setDate(String date)
   {
	  Date = date;
   }

   public String getId()
   {
	  return Id;
   }

   public void setId(String id)
   {
	  Id = id;
   }

   public String getUrl()
   {
	  return Url;
   }

   public void setUrl(String url)
   {
	  Url = url;
   }

   public String getClickCount()
   {
	  return ClickCount;
   }

   public void setClickCount(String clickCount)
   {
	  ClickCount = clickCount;
   }

   public String getAlbumId()
   {
	  return AlbumId;
   }

   public void setAlbumId(String albumId)
   {
	  AlbumId = albumId;
   }

   public String getComment()
   {
	  return Comment;
   }

   public void setComment(String comment)
   {
	  Comment = comment;
   }

   public String getZanNum()
   {
	  return ZanNum;
   }

   public void setZanNum(String zanNum)
   {
	  ZanNum = zanNum;
   }

   /**
    * 0未收藏,1已收藏
    * 
    * @param collect
    */
   public void setCollect(String collect)
   {
	  this.Collect = collect;
   }

   public boolean isCollected()
   {
	  try
	  {
		 if (Collect == null || Collect.equals("") || Collect.equals("0"))
		 {
			return false;
		 }
		 else if(Collect.equals("1"))
		 {
			return true;
		 }
	  }
	  catch (Exception e)
	  {
		 Log.d("ERROR", "EPhoto_isCollected() " + e);
	  }
	  return false;
   }

   private String Id;
   private String Url;
   private String ClickCount;
   private String AlbumId;
   private String Comment;
   private String ZanNum;
   private String Date;
   private String ThumbnailUrl;
   private String Collect;
   private int ThumbnailHeight;
   private int ThumbnailWidth;

}
